<?php

namespace App\Http\Validate\Warehouse;

use App\Http\Validate\BaseValidate;

/**
 * 权限组验证器
 */
class Warehouse extends BaseValidate
{
    //验证规则
    protected $rule = [
        'wtype' => 'required|in:1,2',
        'warehouse_no' => 'required',
        'warehouse_name' => 'required',
    ];
    //自定义验证信息
    protected $message = [
        'wtype.required' => '仓库分类未选择',
        'wtype.in' => '仓库分类参数错误',
        'warehouse_no.required' => '仓库编码不能为空',
        'warehouse_name.required' => '仓库名称不能为空',
    ];
}
